package com.qianzhou.sqlSession;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {
    public <E> List<E> selectList(String statementid, Object... params) throws Exception;

    public <T> T selectOne(String statementid, Object... params) throws Exception;
    public void close() throws SQLException;

    // 使用代理设计模型创建接口的代理对象
    public <T> T getMapper(Class<?> mapperClass);
}
